/** 数据仓库主模块 */
import {
  legacy_createStore,
  combineReducers
} from "redux"
// 当前案例中没有请求接口的操作，所以暂时不使用redux-thunk辅助
// 引入调试模块
import { composeWithDevTools } from "redux-devtools-extension"

import counterReducer from "./counter/counterReducer"
import goodsReducer from "./goods/goodsReducer"

const store = legacy_createStore(combineReducers({
  // 挂载模块数据
  counter: counterReducer,
  goods: goodsReducer
}), composeWithDevTools())

export default store